home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / LGP250S1.ZIP / src / libgplus.5 / libgplus / tests / tfile.exp < prev    next >
Text File  |  1992-05-06  |  1KB  |  50 lines

  1. Hello, world via cout
  2. Hello, world via cerr
  3. enter a char:c = "a"
  4. enter three integers (short, int, long):first  = 123 via dec =      123
  5. second = 4567 via form = 4567 = 010727 via cout.form = 4567 = 0x11d7
  6. third  = 89012 via hex = 15bb4
  7. enter a float then a double:first  = 123.456
  8. second = -0.012
  9. enter 5 characters separated with spaces:first  = 1
  10. rest   =  2 3 4 5
  11.  
  12. Making streams sout and sin...contents of file:
  13. Thisfilehasonelinetestingoutputstreams.
  14. Making File tf ... first line of file:
  15. This is the first and only line of this file.
  16. next char = 10
  17. reopening tempfile, appending: Now there is a second line.
  18. First 10 chars via raw system read after reopen for input:
  19. This is th
  20. Contents after raw lseek to pos 5:
  21. is the first and only line of this file.
  22. Now there is a second line.
  23.  
  24. Making SFile rf...odd elements of file in reverse order:
  25. (i = 9 c = j d = 0.009)
  26. (i = 7 c = h d = 0.007)
  27. (i = 5 c = f d = 0.005)
  28. (i = 3 c = d d = 0.003)
  29. (i = 1 c = b d = 0.001)
  30.  
  31. Making PlotFile pf ...(You may delete or attempt to plot plot.out)
  32. creating ostrstream...
  33. with contents:
  34. This is a string-based stream.
  35. With two lines.
  36. using it to create istrstream...
  37. with contents:
  38. This is a string-based stream.
  39. With two lines.
  40.  
  41. Making filebuf streams fout and fin...contents of file:
  42. Thisfilehasonelinetestingoutputstreams.
  43.  
  44. Final names & states:
  45. cin:      (stdin)    0
  46. cout:     (stdout)    0
  47. cerr:     (stderr)    0
  48.  
  49. end of test.
  50.